package message

import "errors"

var (
	// ErrMessageNotFound 消息不存在
	ErrMessageNotFound = errors.New("message not found")
	// ErrReceiverNotFound 接收者不存在
	ErrReceiverNotFound = errors.New("receiver not found")
	// ErrInvalidMessageType 无效的消息类型
	ErrInvalidMessageType = errors.New("invalid message type")
	// ErrInvalidMessageStatus 无效的消息状态
	ErrInvalidMessageStatus = errors.New("invalid message status")
	// ErrNoPermission 无权限操作
	ErrNoPermission = errors.New("no permission to operate")
)

// 消息类型常量
const (
	// MessageTypeSystem 系统消息
	MessageTypeSystem = 1
	// MessageTypePrivate 私信
	MessageTypePrivate = 2
	// MessageTypeAnnouncement 公告
	MessageTypeAnnouncement = 3
)

// 消息状态常量
const (
	// MessageStatusUnread 未读
	MessageStatusUnread = 1
	// MessageStatusRead 已读
	MessageStatusRead = 2
	// MessageStatusDeleted 已删除
	MessageStatusDeleted = 3
)
